package com.example.ccod.nacos.gateway.client;

import com.ccod.nacos.goods.facade.GoodsDto;

import java.util.List;

/**
 * @author: ccod
 * @data: 2020/12/27 13:36
 **/
public interface GoodsFacadeClient {

    /**
     * 功能描述: <br>
     * 〈搜索所有商品〉
     * @Param: []
     * @Return: java.util.List<com.ccod.nacos.goods.model.GoodsDto>
     * @Author: Ccod
     * @Date: 2020/12/27 13:24
     */
    List<GoodsDto> searchGoods();

    /**
     * 功能描述: <br>
     * 〈新增商品〉
     * @Param: [dto]
     * @Return: boolean
     * @Author: Ccod
     * @Date: 2020/12/27 13:24
     */
    boolean addGoods(GoodsDto dto);

}
